![]() |
PATH![]() |
The JMText interface contains constants and methods used to manipulate JMText objects.
package com.apple.mrj.JManager;
public interface JMText {
public static final int
eMacEncoding = 0,
eUTF8Encoding = 1,
eUnicodeEncoding = 2;
/* @Return the "C" version of the JMTextRef pointer */
public int getTextRef();
/* @Return the number of characters (not bytes) in */
/* the text segment */
public int getTextLength() throws JManagerException
/* Copies the characters to a destination byte array, using */
/* the specified destination encoding. */
/* @param encoding the destination encoding */
/* @buffer the destination buffer */
/* @bufferOffset the offset in the buffer where data is written */
/* @bufferLength the number of characters to write into the buffer*/
/* @return the number of characters actually written to the buffer */
public int getTextBytes(int encoding, byte buffer[],
int bufferOffset, int bufferLength) throws JManagerException;
/* Return a proper java string for this object */
public String toString();
}
Previous | Back Up One Level | Next |